package org.edu.modules.resource.file.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import org.jeecgframework.poi.excel.annotation.Excel;

@TableName("ve_file_image")
@ApiModel(value="ve_file_image对象", description="图片表")
public class VeFileImage
        implements Serializable
{
    private static final long serialVersionUID = 1L;
    @TableId(type=IdType.AUTO)
    @ApiModelProperty("id")
    private Integer id;
    @Excel(name="sha1值", width=15.0D)
    @ApiModelProperty("sha1值")
    private String sha1;
    @Excel(name="图片的名称", width=15.0D)
    @ApiModelProperty("图片的名称")
    private String name;
    @Excel(name="图片的路径", width=15.0D)
    @ApiModelProperty("图片的路径")
    private String sourcefile;
    @Excel(name="扩展名", width=15.0D)
    @ApiModelProperty("扩展名")
    private String ext;
    @Excel(name="文件大小，字节单位", width=15.0D)
    @ApiModelProperty("文件大小，字节单位")
    private long size;
    @Excel(name="上传用户", width=15.0D)
    @ApiModelProperty("上传用户")
    private Integer createuser;
    @Excel(name="上传时间", width=15.0D)
    @ApiModelProperty("上传时间")
    private long createtime;
    @Excel(name="终端系统ID", width=15.0D)
    @ApiModelProperty("终端系统ID")
    private Integer terminalid;
    @Excel(name="多租户id", width=15.0D)
    @ApiModelProperty("多租户id")
    private Integer placeId;

    public VeFileImage setName(String name)
    {
        this.name = name;return this;
    }

    public VeFileImage setSha1(String sha1)
    {
        this.sha1 = sha1;return this;
    }

    public VeFileImage setId(Integer id)
    {
        this.id = id;return this;
    }

    public String toString()
    {
        return "VeFileImage(id=" + getId() + ", sha1=" + getSha1() + ", name=" + getName() + ", sourcefile=" + getSourcefile() + ", ext=" + getExt() + ", size=" + getSize() + ", createuser=" + getCreateuser() + ", createtime=" + getCreatetime() + ", terminalid=" + getTerminalid() + ", placeId=" + getPlaceId() + ")";
    }

    public VeFileImage setPlaceId(Integer placeId)
    {
        this.placeId = placeId;return this;
    }

    public VeFileImage setTerminalid(Integer terminalid)
    {
        this.terminalid = terminalid;return this;
    }

    public VeFileImage setCreatetime(long createtime)
    {
        this.createtime = createtime;return this;
    }

    public VeFileImage setCreateuser(Integer createuser)
    {
        this.createuser = createuser;return this;
    }

    public VeFileImage setSize(long size)
    {
        this.size = size;return this;
    }

    public VeFileImage setExt(String ext)
    {
        this.ext = ext;return this;
    }

    public VeFileImage setSourcefile(String sourcefile)
    {
        this.sourcefile = sourcefile;return this;
    }

    public int hashCode()
    {
        int PRIME = 59;int result = 1;long $size = getSize();result = result * 59 + (int)($size >>> 32 ^ $size);long $createtime = getCreatetime();result = result * 59 + (int)($createtime >>> 32 ^ $createtime);Object $id = getId();result = result * 59 + ($id == null ? 43 : $id.hashCode());Object $createuser = getCreateuser();result = result * 59 + ($createuser == null ? 43 : $createuser.hashCode());Object $terminalid = getTerminalid();result = result * 59 + ($terminalid == null ? 43 : $terminalid.hashCode());Object $placeId = getPlaceId();result = result * 59 + ($placeId == null ? 43 : $placeId.hashCode());Object $sha1 = getSha1();result = result * 59 + ($sha1 == null ? 43 : $sha1.hashCode());Object $name = getName();result = result * 59 + ($name == null ? 43 : $name.hashCode());Object $sourcefile = getSourcefile();result = result * 59 + ($sourcefile == null ? 43 : $sourcefile.hashCode());Object $ext = getExt();result = result * 59 + ($ext == null ? 43 : $ext.hashCode());return result;
    }

    protected boolean canEqual(Object other)
    {
        return other instanceof VeFileImage;
    }

    public boolean equals(Object o)
    {
        if (o == this) {
            return true;
        }
        if (!(o instanceof VeFileImage)) {
            return false;
        }
        VeFileImage other = (VeFileImage)o;
        if (!other.canEqual(this)) {
            return false;
        }
        if (getSize() != other.getSize()) {
            return false;
        }
        if (getCreatetime() != other.getCreatetime()) {
            return false;
        }
        Object this$id = getId();Object other$id = other.getId();
        if (this$id == null ? other$id != null : !this$id.equals(other$id)) {
            return false;
        }
        Object this$createuser = getCreateuser();Object other$createuser = other.getCreateuser();
        if (this$createuser == null ? other$createuser != null : !this$createuser.equals(other$createuser)) {
            return false;
        }
        Object this$terminalid = getTerminalid();Object other$terminalid = other.getTerminalid();
        if (this$terminalid == null ? other$terminalid != null : !this$terminalid.equals(other$terminalid)) {
            return false;
        }
        Object this$placeId = getPlaceId();Object other$placeId = other.getPlaceId();
        if (this$placeId == null ? other$placeId != null : !this$placeId.equals(other$placeId)) {
            return false;
        }
        Object this$sha1 = getSha1();Object other$sha1 = other.getSha1();
        if (this$sha1 == null ? other$sha1 != null : !this$sha1.equals(other$sha1)) {
            return false;
        }
        Object this$name = getName();Object other$name = other.getName();
        if (this$name == null ? other$name != null : !this$name.equals(other$name)) {
            return false;
        }
        Object this$sourcefile = getSourcefile();Object other$sourcefile = other.getSourcefile();
        if (this$sourcefile == null ? other$sourcefile != null : !this$sourcefile.equals(other$sourcefile)) {
            return false;
        }
        Object this$ext = getExt();Object other$ext = other.getExt();return this$ext == null ? other$ext == null : this$ext.equals(other$ext);
    }

    public Integer getId()
    {
        return this.id;
    }

    public String getSha1()
    {
        return this.sha1;
    }

    public String getName()
    {
        return this.name;
    }

    public String getSourcefile()
    {
        return this.sourcefile;
    }

    public String getExt()
    {
        return this.ext;
    }

    public long getSize()
    {
        return this.size;
    }

    public Integer getCreateuser()
    {
        return this.createuser;
    }

    public long getCreatetime()
    {
        return this.createtime;
    }

    public Integer getTerminalid()
    {
        return this.terminalid;
    }

    public Integer getPlaceId()
    {
        return this.placeId;
    }
}
